#ifndef TIMEEDITFORM_H
#define TIMEEDITFORM_H

#include <QWidget>
#include <QTime>
namespace Ui {
class TimeEditForm;
}

class TimeEditForm : public QWidget
{
    Q_OBJECT

public:
    explicit TimeEditForm(QWidget *parent = nullptr);
    ~TimeEditForm();
    void setValue(quint64 seconds);
    void setIndex(int index);

    quint64 value();
    int index();

signals:
    void sig_ValueChanged(int index, quint64 seconds);

public slots:
    void setTimeFormat(int format);

private slots:
    void on_timeEdit_timeChanged(const QTime &time);

    void on_spinBox_valueChanged(int arg1);

private:
    Ui::TimeEditForm *ui;

    int m_Index;
    quint64 m_totalSeconds;
};

#endif // TIMEEDITFORM_H
